package com.tensquare.notice.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author yuxiang
 * @Date 2020-12-21 17:18
 */
@FeignClient("tensquare-article")
public interface ArticleClient {
    // restful风格 传来的数据
    @RequestMapping(value = "article/{articleId}", method = RequestMethod.GET)
    Result findById(@PathVariable("articleId") String articleId);

}
